/*
 * @Author: 杨有财
 * @Date: 2025-02-26 10:01:49
 * @LastEditTime: 2025-03-04 17:26:18
 * @LastEditors: 杨有财
 * @Description: 卡平台相关的路由
 */

import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/homepage',
    component: Layout,
    redirect: '/homepage/base',
    name: 'homepage',
    meta: {
      title: {
        zh_CN: '物联网平台',
        en_US: 'IoT Platform',
      },
      icon: 'internet',
      orderNo: 0,
    },
    children: [
      {
        path: 'dashboard',
        name: 'dashboard',
        component: () => import('@/pages/homepage/dashboard/base/index.vue'),
        meta: {
          title: {
            zh_CN: '仪表盘',
            en_US: 'Overview',
          },
          icon: 'dashboard',
        },
      },
      {
        path: 'asset',
        name: 'asset',
        meta: {
          title: {
            zh_CN: '资产管理',
            en_US: 'Asset',
          },
          icon: 'sim-card',
        },
        component: () => import('@/layouts/blank.vue'),
        children: [
          {
            path: 'simManage',
            name: 'simManage',
            component: () => import('@/pages/homepage/asset/page-sim-manage.vue'),
            meta: {
              title: {
                zh_CN: '卡管理',
                en_US: 'Sim Manage',
              },
            },
          },
          {
            path: 'packageManage',
            name: 'packageManage',
            component: () => import('@/pages/homepage/asset/page-package-manage.vue'),
            meta: {
              title: {
                zh_CN: '套餐管理',
                en_US: 'Package Manage',
              },
            },
          },
        ],
      },
    ],
  },
];
